package com.pcbly.web.business.role;

import java.util.List;
import java.util.Map;

import com.pcbly.web.bean.system.RoleBean;
import com.pcbly.web.business.BaseService;

public interface RoleService extends BaseService<RoleBean> {
	public List<RoleBean> queryRoleBeansByUserId(String userId)
			throws Exception;

	public List<RoleBean> queryRoleBeansByAuthorityId(String authorityId)
			throws Exception;

	public List<RoleBean> findBy(Map<String, String> filter) throws Exception;
	
	List<RoleBean> findRoleBeans()throws Exception;
	
	void saveRoleBean(RoleBean bean)throws Exception;
	
	void updateRoleBean(RoleBean bean)throws Exception;
	
	void deleteRoleBeanById(String id)throws Exception;
	
	RoleBean getRoleBeanById(String id)throws Exception;
}
